import 'package:flutter/material.dart';

import 'BottomBar.dart';

void main() {
  runApp(MyApp());
}

class MyApp extends StatelessWidget {
  @override
  Widget build(BuildContext context) {
    return MaterialApp(
      title: 'Welcome to Flutter',

      home: Scaffold(
        appBar: AppBar(
          title: const Text('Welcome to Flutter'),
        ),
        body:BottomBarStatefulWidget(
          items: [
            Item('CALL', Icons.call),
            Item('ROUTE', Icons.near_me),
            Item('SHARE', Icons.share)
          ],
          onTabSelect: (index) {
            print('$index');
          },
        ),
      ),
    );
  }
}